Skip to content

feat(Lists): improved collapsing of empty list items with nested lists#653

Merged
makhnatkin merged 2 commits intomainfrom
feat/collapse-empty-list
Mar 4, 2025
Merged

feat(Lists): improved collapsing of empty list items with nested lists#653
makhnatkin merged 2 commits intomainfrom
feat/collapse-empty-list

Conversation

@makhnatkin
Copy link
Collaborator

@makhnatkin makhnatkin commented Feb 25, 2025

Added a plugin for the WYSIWYG editor that extracts nested lists from empty list items and merges them into the parent list. If a list item contains only a nested list, it is moved up and integrated into the structure. The document structure remains clean and readable, ensuring correct indentation and hierarchy.

Before & After Examples

Example 1: Empty List Item with Nested List

Before:

* * Nested item

after:

* Nested item

Example 2: Nested List Inside an Empty List Item with Additional Content

before:

* First item
* * Nested item
  Paragraph
  * Second item

after:

* First item
* Nested item
* Paragraph
  * Second item
collapsing.of.empty.list.mp4

@makhnatkin makhnatkin requested a review from d3m1d0v as a code owner February 25, 2025 19:27
@gravity-ui-bot
Copy link
Contributor

Preview is ready.

@makhnatkin makhnatkin force-pushed the feat/collapse-empty-list branch from 943aad6 to e4547c5 Compare March 4, 2025 09:22
@makhnatkin makhnatkin requested a review from shevnv March 4, 2025 09:22
@makhnatkin makhnatkin merged commit c828137 into main Mar 4, 2025
4 checks passed
@makhnatkin makhnatkin deleted the feat/collapse-empty-list branch March 4, 2025 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants